package com.ruoyi.tb.lmt.service;

import com.ruoyi.tb.lmt.domain.TbRepairplan;
import com.ruoyi.tb.lmt.domain.vo.TbRepairplanVo;
import com.ruoyi.tb.lmt.domain.bo.TbRepairplanBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Collection;
import java.util.List;

/**
 * 检修计划Service接口
 *
 * @author ruoyi
 * @date 2023-12-07
 */
public interface ITbRepairplanService {

    /**
     * 查询检修计划
     */
    TbRepairplanVo queryById(Long id);

    /**
     * 查询检修计划列表
     */
    TableDataInfo<TbRepairplanVo> queryPageList(TbRepairplanBo bo, PageQuery pageQuery);

    /**
     * 查询检修计划列表
     */
    List<TbRepairplanVo> queryList(TbRepairplanBo bo);

    /**
     * 新增检修计划
     */
    Boolean insertByBo(TbRepairplanBo bo);

    /**
     * 修改检修计划
     */
    Boolean updateByBo(TbRepairplanBo bo);

    /**
     * 校验并批量删除检修计划信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    Boolean insertPlanAndListByBo(TbRepairplanBo bo);

    Boolean updatePlanAndListByBo(TbRepairplanBo bo);

    TbRepairplanVo queryPlanAndListById(Long id);

    TableDataInfo<TbRepairplanVo> queryPagePlanAndList(TbRepairplanBo bo, PageQuery pageQuery);

    Boolean deletePlanAndListByIds(List<Long> ids, Boolean isValid);

    Boolean updatePlanAndListStatusByBo(TbRepairplanBo bo);

    void export(HttpServletRequest request, HttpServletResponse response, Long id);

    TbRepairplanVo nowList();

    List<TbRepairplanVo> allList();

    void export1(HttpServletRequest request, HttpServletResponse response, Long id);
}
